<template>
  <div class="btn-wrap">
    <van-button type="primary" round size="large" @click.stop="onGoLogin">
      去登陆
    </van-button>
  </div>
</template>
<script setup>
import { useRouter } from "vue-router";
const router = useRouter();

function onGoLogin() {
  router.push({
    path: "/login",
  });
}
</script>

<style lang="less" scoped>
.btn-wrap {
  margin: 20px;
}
</style>
